import request from '@/utils/request'

// 查询申请加班列表
export function listApplyWork(query) {
  return request({
    url: '/mis/applyWork/list',
    method: 'get',
    params: query
  })
}

// 查询申请加班详细
export function getApplyWork(id) {
  return request({
    url: '/mis/applyWork/' + id,
    method: 'get'
  })
}

// 新增申请加班
export function addApplyWork(data) {
  return request({
    url: '/mis/applyWork',
    method: 'post',
    data: data
  })
}

// 修改申请加班
export function updateApplyWork(data) {
  return request({
    url: '/mis/applyWork',
    method: 'put',
    data: data
  })
}

// 删除申请加班
export function delApplyWork(id) {
  return request({
    url: '/mis/applyWork/' + id,
    method: 'delete'
  })
}
